package com.fallsvc.re.networkprogramming.singleton.lazy;

/**
 * @auther falls_vc
 * description:
 * @date 2025/10/29  8:43
 */
// 单线程版
public class Singleton1 {
    private static Singleton1 singleton = null;

    private Singleton1() {

    }
    public static Singleton1 getInstance() {
        if (singleton == null) {
            singleton = new Singleton1();
        }

        return singleton;
    }
}
